package com.bdqn.ch06.sl;

import org.apache.log4j.Logger;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;

@Aspect
public class AfterLogger {
    private static final Logger logger = Logger.getLogger(AfterLogger.class);
    @After("execution(* com.bdqn.ch05.sl.sl1.service.UserService.*(..))")
    public void afterLogger(JoinPoint jp){
        logger.debug(jp.getSignature().getName()+"方法执行完毕");
    }
}
